<template>
	<view>
		<uni-section title="发表留言" type="line">
			<uni-list v-for="item in list">
				<uni-list-item :title="item.title" :note="item.content"></uni-list-item>
			</uni-list>
		</uni-section>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[]
			}
		},
		methods: {
			
		},
		onLoad() {
			uni.request({
				url: 'http://localhost:8090/freshmenapp/message/list',
				method: 'POST',
				data: {
					id: 1
				},
				success: res => {
					this.list = res.data.list
					uni.showToast({
						title: '成功',
						icon: 'none'
					});
				},
				fail: () => {},
				complete: () => {}
			});
		}
	}
</script>

<style>

</style>
